<?php

refreshPageSiteTree();

//	$currentxmlstatus = "";
//	
//	if(@$_GET['xmlstatus'])	
//		$currentxmlstatus = $_GET['xmlstatus'];
//		
//	//print_r($XML1);
//	
//	$obTagsSiteChildren = $XML1 -> getSiteChildrenOfTag($_GET["language"]."(root)");
//
//	addContent("<table width=\"100%\" id=\"tbTagsTree\"><tr><td valign=\"top\">");
//	
//	addContent("<table>");
//	
//	foreach ($obTagsSiteChildren -> getTagIDs() as $obTagsId) {
//		
//		# Get list of groups authorized to view this tag
//		$arrTagAuthorized = $XML1 -> getAuthorizedGroups($obTagsId);
//		
//		# Get List of groups of users
//		$arrGroupAuthorized= explode(",", $USER -> getGroup());
//		
//		# Ensure it can be viewed at current authorization
//		$flagTagAuthorized = (findArrayInArray($arrTagAuthorized, $arrGroupAuthorized) !== false);
//		
//		if($flagTagAuthorized){
//		
//			$obTagStatus = $XML1 -> getXMLStatus($obTagsId);
//	
//			$obTag  = $obTagsSiteChildren -> getTag($obTagsId);
//			
//			if($currentxmlstatus != ""){
//				
//				if($currentxmlstatus != "@all"){
//			
//					if($currentxmlstatus == $obTagStatus){
//					
//						if(@$obTagTitle = $XML1 -> getSiteChildrenByName($obTag->getID(),"title")){
//							
//							$pageTitle = $obTagTitle -> GetAttributeByKey("value");//current title of page
//		
//							addContent("<tr><td valign=\"top\" width=\"20%\"><a href=\"javascript:void(0)\" onclick=\"onlick_openSiteParent(this,'".$obTag->getID()."','".$obTag->getData('x_section')."')\" style=\"text-decoration:none;\">+</a></td><td><a href=\"javascript:void(0)\" onclick=\"onclick_showTitle(this,'".$obTag->getID()."','".$obTagTitle -> getData("x_id")."' )\" title=\"".$pageTitle."\" style=\"text-decoration:none;\">".getXmlStatusIcon($obTagStatus).$pageTitle."</a><div></div></td></tr>");
//						}
//						else{
//							
//							addContent("<tr><td valign=\"top\" width=\"20%\"><a href=\"javascript:void(0)\" onclick=\"onlick_openSiteParent(this,'".$obTag->getID()."','".$obTag->getData('x_section')."')\" style=\"text-decoration:none;\">+</a></td><td><a href=\"javascript:void(0)\" onclick=\"onclick_showTitle(this,'".$obTag->getID()."','' )\" style=\"text-decoration:none;\">".getXmlStatusIcon($obTagStatus).$obTag -> getData("x_name")."</a><div></div></td></tr>");
//						}
//					}
//				}
//				else{
//					
//					if(@$obTagTitle = $XML1 -> getSiteChildrenByName($obTag->getID(),"title")){
//							
//						$pageTitle = $obTagTitle -> GetAttributeByKey("value");//current title of page
//		
//						addContent("<tr><td valign=\"top\" width=\"20%\"><a href=\"javascript:void(0)\" onclick=\"onlick_openSiteParent(this,'".$obTag->getID()."','".$obTag->getData('x_section')."')\" style=\"text-decoration:none;\">+</a></td><td><a href=\"javascript:void(0)\" onclick=\"onclick_showTitle(this,'".$obTag->getID()."','".$obTagTitle -> getData("x_id")."' )\" title=\"".$pageTitle."\" style=\"text-decoration:none;\">".getXmlStatusIcon($obTagStatus).$pageTitle."</a><div></div></td></tr>");
//					}
//					else{
//							
//						addContent("<tr><td valign=\"top\" width=\"20%\"><a href=\"javascript:void(0)\" onclick=\"onlick_openSiteParent(this,'".$obTag->getID()."','".$obTag->getData('x_section')."')\" style=\"text-decoration:none;\">+</a></td><td><a href=\"javascript:void(0)\" onclick=\"onclick_showTitle(this,'".$obTag->getID()."','' )\" style=\"text-decoration:none;\">".getXmlStatusIcon($obTagStatus).$obTag -> getData("x_name")."</a><div></div></td></tr>");
//					}
//				}
//			}
//			//else{
////				
////				if($USER -> IsNameInGroup("Developers") || $USER -> IsNameInGroup("Administrators")){
////				
////					if(@$obTagTitle = $XML1 -> getSiteChildrenByName($obTag->getID(),"title")){
////						
////						$pageTitle = $obTagTitle -> GetAttributeByKey("value");//current title of page
////
////						addContent("<tr><td valign=\"top\" width=\"20%\"><a href=\"javascript:void(0)\" onclick=\"onlick_openSiteParent(this,'".$obTag->getID()."')\" style=\"text-decoration:none;\">+</a></td><td><a href=\"javascript:void(0)\" onclick=\"onclick_showTitle(this,'".$obTag->getID()."','".$obTagTitle -> getData("x_id")."' )\" title=\"".$pageTitle."\" style=\"text-decoration:none;\">".$pageTitle."</a><div></div></td></tr>");
////					}
////					else{
////							
////						addContent("<tr><td valign=\"top\" width=\"20%\"><a href=\"javascript:void(0)\" onclick=\"onlick_openSiteParent(this,'".$obTag->getID()."')\" style=\"text-decoration:none;\">+</a></td><td><a href=\"javascript:void(0)\" onclick=\"onclick_showTitle(this,'".$obTag->getID()."','' )\" style=\"text-decoration:none;\">".$obTag -> getData("x_name")."</a><div></div></td></tr>");
////					}
////				}
////				else{			
////					if($obTagStatus == 1 || $obTagStatus == 2){
////					
////						if(@$obTagTitle = $XML1 -> getSiteChildrenByName($obTag->getID(),"title")){
////							
////							$pageTitle = $obTagTitle -> GetAttributeByKey("value");//current title of page
////							
////							addContent("<tr><td valign=\"top\" width=\"20%\"><a href=\"javascript:void(0)\" onclick=\"onlick_openSiteParent(this,'".$obTag->getID()."')\" style=\"text-decoration:none;\">+</a></td><td><a href=\"javascript:void(0)\" onclick=\"onclick_showTitle(this,'".$obTag->getID()."','".$obTagTitle -> getData("x_id")."' )\" title=\"".$pageTitle."\" style=\"text-decoration:none;\">".$pageTitle."</a><div></div></td></tr>");
////						}
////						else{
////								
////							addContent("<tr><td valign=\"top\" width=\"20%\"><a href=\"javascript:void(0)\" onclick=\"onlick_openSiteParent(this,'".$obTag->getID()."')\" style=\"text-decoration:none;\">+</a></td><td><a href=\"javascript:void(0)\" onclick=\"onclick_showTitle(this,'".$obTag->getID()."','' )\" style=\"text-decoration:none;\">".$obTag -> getData("x_name")."</a><div></div></td></tr>");
////						}
////					}
////				}
////			}
//		}
//	}
//	
//	addContent("</table>");
//	
//	addContent("</td><td valign=\"top\" align=\"left\" width=\"80%\"><div id=\"dvContentPanel\" align=\"left\"></div></td></tr></table>");

?>